package com.three.lab.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class InteractMsgBean implements Parcelable {

    private int id;
    private String conent;
    private String time;
    private String goodsImgUrl;
    private String nickName;
    private String avatarUrl;
    private boolean like;
    private boolean collect;

    public InteractMsgBean() {
    }

    public InteractMsgBean(int id, String conent, String time, String goodsImgUrl, String nickName, String avatarUrl, boolean like, boolean collect) {
        this.id = id;
        this.conent = conent;
        this.time = time;
        this.goodsImgUrl = goodsImgUrl;
        this.nickName = nickName;
        this.avatarUrl = avatarUrl;
        this.like = like;
        this.collect = collect;
    }

    protected InteractMsgBean(Parcel in) {
        id = in.readInt();
        conent = in.readString();
        time = in.readString();
        goodsImgUrl = in.readString();
        nickName = in.readString();
        avatarUrl = in.readString();
        like = in.readByte() != 0;
        collect = in.readByte() != 0;
    }

    public static final Creator<InteractMsgBean> CREATOR = new Creator<InteractMsgBean>() {
        @Override
        public InteractMsgBean createFromParcel(Parcel in) {
            return new InteractMsgBean(in);
        }

        @Override
        public InteractMsgBean[] newArray(int size) {
            return new InteractMsgBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getConent() {
        return conent;
    }

    public void setConent(String conent) {
        this.conent = conent;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getGoodsImgUrl() {
        return goodsImgUrl;
    }

    public void setGoodsImgUrl(String goodsImgUrl) {
        this.goodsImgUrl = goodsImgUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public boolean isLike() {
        return like;
    }

    public void setLike(boolean like) {
        this.like = like;
    }

    public boolean isCollect() {
        return collect;
    }

    public void setCollect(boolean collect) {
        this.collect = collect;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(conent);
        dest.writeString(time);
        dest.writeString(goodsImgUrl);
        dest.writeString(nickName);
        dest.writeString(avatarUrl);
        dest.writeByte((byte) (like ? 1 : 0));
        dest.writeByte((byte) (collect ? 1 : 0));
    }
}
